home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
listbox
/
txtyle
/
txtyle.glb
< prev
next >
Wrap
Text File
|
1991-12-05
|
2KB
|
49 lines
'============================================================================
'
' TXTYLE (Text Style)
' Gregg Irwin (CIS 72450,676)
'
' This little demo was inspired by Keith Funk's PICNIC's
' demo which made me think that some of the other styles
' which are not normally available from VB would be useful
' to others as well as myself. This demo exists because
' of the generosity (and research) of the following people.
'
' Keith Funk
' Costas Kitsos
' Jonathan Zuck
' Nelson Ford
' And anyone else I've forgotten...
'============================================================================
'
'-- Declarations for external functions.
'---------------------------------------------------------------------------
'-- CTLHWND.DLL is a custom DLL written by Jonathan Zuck. It is available
'-- in Lib 5 of the MSBASIC Forum under the name VBHWND.ZIP.
'---------------------------------------------------------------------------
Declare Function ControlHwnd Lib "ctlhwnd.dll" (Ctl As Control) As Integer
'-- Win3 API Functions and Constants.
Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long
Declare Function GetWindowLong Lib "User" (ByVal hWnd As Integer, ByVal nIndex As Integer) As Long
Declare Function SetWindowLong Lib "User" (ByVal hWnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As Long) As Long
Global Const ES_UPPERCASE = &H8&
Global Const ES_LOWERCASE = &H10&
Global Const ES_PASSWORD = &H20&
'-- Window field offsets for GetWindowLong() and GetWindowWord()
Global Const GWL_STYLE = (-16)
'-- Edit control messages
Global Const WM_USER = &H400
Global Const EM_LIMITTEXT = WM_USER + 21
Global Const EM_SETPASSWORDCHAR = WM_USER + 28
Global Const True = -1
Global Const False = 0